package com.fz.service;

import com.fz.controller.request.BaseRequest;
import com.fz.pojo.Book;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BookService {
    List<Book> list();

    //分页
    PageInfo<Book> page(BaseRequest baseRequest);

    //添加图书
    void addBook(Book book);

    //通过id查询图书
    Book getById(Integer id);

    void update(Book book);

    void deleteById(Integer id);


}
